﻿@model Kelper.Domain.Models.User
@{
    ViewBag.Title = "Kelper - Register";
}
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.min.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")"></script>

<h2>Register</h2>

@using (Html.BeginForm())
{
    <div>@Html.ValidationSummary()</div>
    <table>
        <tr>
            <td>@Html.LabelFor(u => u.Username)</td>
            <td>@Html.EditorFor(u => u.Username)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(u => u.Email)</td>
            <td>@Html.EditorFor(u => u.Email)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(u => u.ConfirmEmail)</td>
            <td>@Html.EditorFor(u => u.ConfirmEmail)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(u => u.UnhashedPassword)</td>
            <td>@Html.EditorFor(u => u.UnhashedPassword)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(u => u.ConfirmPassword)</td>
            <td>@Html.EditorFor(u => u.ConfirmPassword)</td>
        </tr>
    </table>
    <div><input type="submit" value="Register" /></div>
}